package com.etime.yqtsponsor.service;

import com.etime.yqtsponsor.pojo.*;

import com.etime.yqtsponsor.pojo.ActiveTheme;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @author: LouisLew
 * @date: 2022/07/19/16:28
 * @description: 活动信息的service层接口
 */
public interface ActiveThemeService {

    /**
     * 创建活动---问卷调查（survey)
     */

    int addActiveTheme(ActiveTheme activeTheme,ActivePicBank activePicBank,Questions questions,SurveyItem surveyItem);

    /**
     * 创建活动--投票活动中用户添加作品内容
     */
    int addActiveVoteRegister(VoteRegister voteRegister);



    /**
     * 删除活动
     * @param activeId
     * @return
     */
    int deleteActive(Integer activeId);

    List<Questions> findHistoryQuestionById(int creatorId);

    /**
     * 根据主键查找活动
     * @param id
     * @return
     */
    public ActiveTheme selectById(Integer id);

    /**
     * ActiveVoteFormMapper 添加选手所需信息
     */
    int addActiveVoteForm(ActiveVoteForm activeVoteForm);
}
